from rest_framework import serializers

from .models import Goods
from user.models import User


class GoodsSerializer(serializers.ModelSerializer):
    class Meta:
        model = Goods
        fields = '__all__'  # 所有字段
